package com.ashley.thread.test3;

/**
 * @author ashley
 * @date 2019/9/25-17:08
 */
public class Main {
    public static void main(String[] args) {
        MyThread t = new MyThread();
        //启动当前线程;调用当前线程的run()
        t.start();
        //调用当前线程的run()
        //t.run();

        //重新创建一个线程
        MyThread t1 = new MyThread();
        t1.start();

        System.out.println(Thread.currentThread().getName());
    }
}
